#!/bin/bash

# PYTHON="/home/rslab/anaconda3/envs/SOMatch36/bin/python3.6"
PYTHON="E:/ProgramData/Anaconda3/envs/SOMatch36/python.exe"

# ----------------- mosaic -----------------
:<<!
CMD="E:/workspace/SOMatch/script/rasterio_mosaic.py"

# $PYTHON $CMD --path "E:/datasets/spacenet-dataset/spacenet/SN6_buildings/train/AOI_11_Rotterdam/PS-RGB" --output_dir "E:/datasets/client-data/mosaic_spn" --kw "20190804" --prefix "ps-rgb"

# $PYTHON $CMD --path "E:/datasets/spacenet-dataset/spacenet/SN6_buildings/train/AOI_11_Rotterdam/PS-RGB" --output_dir "E:/datasets/client-data/mosaic_spn" --kw "20190822" --prefix "ps-rgb"

# $PYTHON $CMD --path "E:/datasets/spacenet-dataset/spacenet/SN6_buildings/train/AOI_11_Rotterdam/PS-RGB" --output_dir "E:/datasets/client-data/mosaic_spn" --kw "20190823" --prefix "ps-rgb"

# $PYTHON $CMD --path "E:/datasets/spacenet-dataset/spacenet/SN6_buildings/train/AOI_11_Rotterdam/SAR-Intensity" --output_dir "E:/datasets/client-data/mosaic_spn" --kw "20190822" --prefix "sar"
!

# ----------------- split -----------------
:<<!
CMD="E:/workspace/SOMatch/script/split_tif.py"

$PYTHON $CMD --path "E:/datasets/client-data/mosaic_spn/sar_20190822.tif" --save_dir "E:/datasets/client-data/sar_spn_0804"
!

# ----------------- mosaic -----------------
:<<!
CMD="E:/workspace/SOMatch/script/rasterio_mosaic.py"

# $PYTHON $CMD --path "E:/datasets/spacenet-dataset/spacenet/SN6_buildings/train/AOI_11_Rotterdam/PS-RGB" --output_dir "E:/datasets/client-data/mosaic_spn" --kw "20190804" --prefix "ps-rgb"

# $PYTHON $CMD --path "E:/datasets/spacenet-dataset/spacenet/SN6_buildings/train/AOI_11_Rotterdam/PS-RGB" --output_dir "E:/datasets/client-data/mosaic_spn" --kw "20190822" --prefix "ps-rgb"

# $PYTHON $CMD --path "E:/datasets/spacenet-dataset/spacenet/SN6_buildings/train/AOI_11_Rotterdam/PS-RGB" --output_dir "E:/datasets/client-data/mosaic_spn" --kw "20190823" --prefix "ps-rgb"

$PYTHON $CMD --path "E:/datasets/spacenet-dataset/spacenet/SN6_buildings/train/AOI_11_Rotterdam/SAR-Intensity" --output_dir "E:/datasets/client-data/mosaic_spn" --kw "20190823" --prefix "sar"
!

# ----------------- split -----------------
:<<!
CMD="E:/workspace/SOMatch/script/split_tif.py"

$PYTHON $CMD --path "E:/datasets/client-data/mosaic_spn/sar_20190823.tif" --save_dir "E:/datasets/client-data/sar_spn_0822"
!

# ----------------- mosaic -----------------
# :<<!
CMD="E:/workspace/SOMatch/script/rasterio_mosaic.py"

# $PYTHON $CMD --path "E:/datasets/spacenet-dataset/spacenet/SN6_buildings/train/AOI_11_Rotterdam/PS-RGB" --output_dir "E:/datasets/client-data/mosaic_spn" --kw "20190804" --prefix "ps-rgb"

# $PYTHON $CMD --path "E:/datasets/spacenet-dataset/spacenet/SN6_buildings/train/AOI_11_Rotterdam/PS-RGB" --output_dir "E:/datasets/client-data/mosaic_spn" --kw "20190822" --prefix "ps-rgb"

# $PYTHON $CMD --path "E:/datasets/spacenet-dataset/spacenet/SN6_buildings/train/AOI_11_Rotterdam/PS-RGB" --output_dir "E:/datasets/client-data/mosaic_spn" --kw "20190823" --prefix "ps-rgb"

$PYTHON $CMD --path "E:/datasets/spacenet-dataset/spacenet/SN6_buildings/train/AOI_11_Rotterdam/SAR-Intensity" --output_dir "E:/datasets/client-data/mosaic_spn" --kw "20190804" --prefix "sar_test"
# !

# ----------------- split -----------------
:<<!
CMD="E:/workspace/SOMatch/script/split_tif.py"

$PYTHON $CMD --path "E:/datasets/client-data/mosaic_spn/sar_20190804.tif" --save_dir "E:/datasets/client-data/sar_spn_0823"
!